import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import socketio from '@/components/socketio'
import VueSocketio from 'vue-socket.io'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'

Vue.use(Router)
Vue.use(new VueSocketio({
  debug: true,
  connection: 'http://localhost:9092'
}));
Vue.use(ElementUI)
Vue.prototype.$ajax = axios
export default new Router({
  routes: [
    {
      path: '/HelloWorld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/socketio',
      name: 'socketio',
      component: socketio
    }
  ]
})
